package ld.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import ld.mapper.DeptMapper;
import ld.pojo.DeptExample;
import ld.pojo.Dept;
import ld.service.DeptService;
/**
 * @Author: Liudao
 * @Date: 2022-08-10-15:47
 * @Description: 
 */
@Service
public class DeptServiceImpl implements DeptService{

    @Resource
    private DeptMapper deptMapper;

    @Override
    public long countByExample(DeptExample example) {
        return deptMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(DeptExample example) {
        return deptMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer did) {
        return deptMapper.deleteByPrimaryKey(did);
    }

    @Override
    public int insert(Dept record) {
        return deptMapper.insert(record);
    }

    @Override
    public int insertSelective(Dept record) {
        return deptMapper.insertSelective(record);
    }

    @Override
    public List<Dept> selectByExample(DeptExample example) {
        return deptMapper.selectByExample(example);
    }

    @Override
    public Dept selectByPrimaryKey(Integer did) {
        return deptMapper.selectByPrimaryKey(did);
    }

    @Override
    public int updateByExampleSelective(Dept record,DeptExample example) {
        return deptMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Dept record,DeptExample example) {
        return deptMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Dept record) {
        return deptMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Dept record) {
        return deptMapper.updateByPrimaryKey(record);
    }

}
